<?php
declare (strict_types = 1);

namespace vinchan\encryption;

/**
 *  vinchan\encryption\Factory\RSA
 *  vinchan\encryption\Factory\AES
 */

class Factory
{
	public static function make($method,array $config=[])
	{
		$classObject = "\\vinchan\\encryption\\Factory\\".$method;

		return new $classObject($config);
	}

	public static function __callStatic(string $method,array $arguments=[])
	{
		return self::make($method,...$arguments);
	}
}